import * as types from "@/redux/mutation-types";
import { IUserPermission } from "@/api/interface/permission";

// * setAuthButtons
export const setAuthButtons = (authButtons: { [propName: string]: any }) => ({
	type: types.SET_AUTH_BUTTONS,
	authButtons
});

// * setAuthRouter
export const setAuthRouter = (authRouter: string[]) => ({
	type: types.SET_AUTH_ROUTER,
	authRouter
});

// * setPermissions
export const setPermissions = (permissions: IUserPermission[]) => ({
	type: types.SET_PERMISSIONS,
	permissions
});
